/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package telaMenu;

import managertelaMenu.managerMenuPrincipal;

/**
 *
 * @author fumio
 */
public class MenuPrincipal extends javax.swing.JFrame {
    managerMenuPrincipal mMenuPrincipal = new managerMenuPrincipal(WIDTH);
    /**
     * Creates new form MenuPrincipal
     */
    public MenuPrincipal() {
        initComponents();
        this.setTitle("Sistema de Salão");
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jPanel1 = new javax.swing.JPanel();
        jMenuBar1 = new javax.swing.JMenuBar();
        mnuCadastros = new javax.swing.JMenu();
        mnuPessoa = new javax.swing.JMenu();
        mnuCliente = new javax.swing.JMenuItem();
        mnuFuncionario = new javax.swing.JMenu();
        mnuUsuario = new javax.swing.JMenuItem();
        mnuCadFuncionario = new javax.swing.JMenuItem();
        mnuFuncao = new javax.swing.JMenuItem();
        mnuFornecedor = new javax.swing.JMenu();
        mFornecedor = new javax.swing.JMenuItem();
        mnuCidade = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        mnuServico = new javax.swing.JMenuItem();
        mnuTipoServico = new javax.swing.JMenuItem();
        mnuProduto = new javax.swing.JMenu();
        mnuCadProduto = new javax.swing.JMenuItem();
        mnuClassificacao = new javax.swing.JMenuItem();
        mnuFabricante = new javax.swing.JMenuItem();
        mnuProdutoServico = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        jMenuItem1.setText("jMenuItem1");

        jMenuItem2.setText("jMenuItem2");

        jMenu1.setText("jMenu1");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Sistema Cut Hair");
        setExtendedState(MAXIMIZED_BOTH);

        jPanel1.setBorder(javax.swing.BorderFactory.createCompoundBorder(null, javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 628, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        mnuCadastros.setText("Cadastros");

        mnuPessoa.setText("Pessoa");

        mnuCliente.setText("Cliente");
        mnuCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuClienteActionPerformed(evt);
            }
        });
        mnuPessoa.add(mnuCliente);

        mnuFuncionario.setText("Funcionário");

        mnuUsuario.setText("Usuário");
        mnuFuncionario.add(mnuUsuario);

        mnuCadFuncionario.setText("Funcionároi");
        mnuCadFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCadFuncionarioActionPerformed(evt);
            }
        });
        mnuFuncionario.add(mnuCadFuncionario);

        mnuFuncao.setText("Função");
        mnuFuncao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuFuncaoActionPerformed(evt);
            }
        });
        mnuFuncionario.add(mnuFuncao);

        mnuPessoa.add(mnuFuncionario);

        mnuFornecedor.setText("Fornecedor");

        mFornecedor.setText("Fornecedor");
        mFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mFornecedorActionPerformed(evt);
            }
        });
        mnuFornecedor.add(mFornecedor);

        mnuPessoa.add(mnuFornecedor);

        mnuCadastros.add(mnuPessoa);

        mnuCidade.setText("Cidades");
        mnuCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCidadeActionPerformed(evt);
            }
        });
        mnuCadastros.add(mnuCidade);

        jMenu3.setText("Serviço");

        mnuServico.setText("Serviço");
        mnuServico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuServicoActionPerformed(evt);
            }
        });
        jMenu3.add(mnuServico);

        mnuTipoServico.setText("Tipo de Serviço");
        mnuTipoServico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuTipoServicoActionPerformed(evt);
            }
        });
        jMenu3.add(mnuTipoServico);

        mnuCadastros.add(jMenu3);

        mnuProduto.setText("Produto");

        mnuCadProduto.setText("Produto");
        mnuCadProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCadProdutoActionPerformed(evt);
            }
        });
        mnuProduto.add(mnuCadProduto);

        mnuClassificacao.setText("Classificação");
        mnuClassificacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuClassificacaoActionPerformed(evt);
            }
        });
        mnuProduto.add(mnuClassificacao);

        mnuFabricante.setText("Fabricante");
        mnuFabricante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuFabricanteActionPerformed(evt);
            }
        });
        mnuProduto.add(mnuFabricante);

        mnuCadastros.add(mnuProduto);

        mnuProdutoServico.setText("Produto e Serviço");
        mnuProdutoServico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuProdutoServicoActionPerformed(evt);
            }
        });
        mnuCadastros.add(mnuProdutoServico);

        jMenuBar1.add(mnuCadastros);

        jMenu2.setText("Agendamento");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-642)/2, (screenSize.height-474)/2, 642, 474);
    }// </editor-fold>//GEN-END:initComponents

    private void mnuCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCidadeActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(12);
     
        
    }//GEN-LAST:event_mnuCidadeActionPerformed

    private void mnuClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuClienteActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(111);
    }//GEN-LAST:event_mnuClienteActionPerformed

    private void mnuFuncaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuFuncaoActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(123);
    }//GEN-LAST:event_mnuFuncaoActionPerformed

    private void mnuCadFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCadFuncionarioActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(122);
    }//GEN-LAST:event_mnuCadFuncionarioActionPerformed

    private void mFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mFornecedorActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(113);
    }//GEN-LAST:event_mFornecedorActionPerformed

    private void mnuCadProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCadProdutoActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(141);
    }//GEN-LAST:event_mnuCadProdutoActionPerformed

    private void mnuClassificacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuClassificacaoActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(142);
    }//GEN-LAST:event_mnuClassificacaoActionPerformed

    private void mnuFabricanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuFabricanteActionPerformed
        // TODO add your handling code here
        mMenuPrincipal.comandaMenu(143);
    }//GEN-LAST:event_mnuFabricanteActionPerformed

    private void mnuServicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuServicoActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(131);
    }//GEN-LAST:event_mnuServicoActionPerformed

    private void mnuTipoServicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuTipoServicoActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(132);
    }//GEN-LAST:event_mnuTipoServicoActionPerformed

    private void mnuProdutoServicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuProdutoServicoActionPerformed
        // TODO add your handling code here:
        mMenuPrincipal.comandaMenu(15);
    }//GEN-LAST:event_mnuProdutoServicoActionPerformed

    /**
     * @param args the command line arguments
     */

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JPanel jPanel1;
    public javax.swing.JMenuItem mFornecedor;
    public javax.swing.JMenuItem mnuCadFuncionario;
    public javax.swing.JMenuItem mnuCadProduto;
    private javax.swing.JMenu mnuCadastros;
    private javax.swing.JMenuItem mnuCidade;
    public javax.swing.JMenuItem mnuClassificacao;
    private javax.swing.JMenuItem mnuCliente;
    public javax.swing.JMenuItem mnuFabricante;
    private javax.swing.JMenu mnuFornecedor;
    public javax.swing.JMenuItem mnuFuncao;
    private javax.swing.JMenu mnuFuncionario;
    private javax.swing.JMenu mnuPessoa;
    public javax.swing.JMenu mnuProduto;
    public javax.swing.JMenuItem mnuProdutoServico;
    public javax.swing.JMenuItem mnuServico;
    public javax.swing.JMenuItem mnuTipoServico;
    private javax.swing.JMenuItem mnuUsuario;
    // End of variables declaration//GEN-END:variables
}
